/*
 * i2c.h
 *
 *  Created on: May 13, 2023
 *      Author: zhulijun
 */

#ifndef INC_I2C_H_
#define INC_I2C_H_

#include "my_inc.h"


#define ACK 		0
#define NOACK		1


extern void IIC_Init(void);
extern void IIC_Start(void);
extern void IIC_Stop(void);
extern uint8_t IIC_WaitAck(void);
extern void IIC_SendByte(uint8_t data);
extern uint8_t IIC_ReadByte(uint8_t ack);


#endif /* INC_I2C_H_ */
